package com.ruoyi.user.service.thirdpay.alipay.requestparams;

import java.math.BigDecimal;
import java.util.Random;

/**
 * @author houyong
 */
public class AlipayRefundParams {

    private String out_trade_no;
    private BigDecimal refund_amount;
    private String refund_reason;
    private String out_request_no;

    public AlipayRefundParams() {

    }

    public AlipayRefundParams(String outRequestNo, String out_trade_no, String refund_amount, String refund_reason) {
        this.out_request_no = outRequestNo;
        this.out_trade_no = out_trade_no;
        this.refund_reason = refund_reason;
        this.refund_amount = new BigDecimal(refund_amount);
    }

    public static int getRandomNumber() {
        return new Random().nextInt(9999) % (9999 - 1000 + 1) + 1000;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public BigDecimal getRefund_amount() {
        return refund_amount;
    }

    public void setRefund_amount(BigDecimal refund_amount) {
        this.refund_amount = refund_amount;
    }

    public String getRefund_reason() {
        return refund_reason;
    }

    public void setRefund_reason(String refund_reason) {
        this.refund_reason = refund_reason;
    }

    public String getOut_request_no() {
        return out_request_no;
    }

    public void setOut_request_no(String out_request_no) {
        this.out_request_no = out_request_no;
    }

}
